package cate.common.table.activity.happyflop.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.happyflop.row.HappyFlopRwdCfgRow;
import easy.java.dev.note.NoteClass;

@NoteClass("翻翻乐-翻牌奖励 Sheet")
public class HappyFlopRwdCfgSheet extends ESheet<HappyFlopRwdCfgRow> {
    @Override
    public String getSheetName() {
        return "翻牌奖励";
    }

    public HappyFlopRwdCfgRow findRow(int round, int group) {
        for (HappyFlopRwdCfgRow row : this.getList()) {
            if (round >= row.startRound && round <= row.endRound && row.rwdGroup == group) {
                return row;
            }
        }
        return null;
    }
}
